//Based off EGGBeast's scripts for Evo
_unit = _this select 0;
_grp = group _unit;
_type = typeof _unit;
_posu = position _unit;
unassignVehicle _unit;
_unit setPos _posu;

//Add uniform checks
_unituniform = uniform _unit;

deleteVehicle _unit;
_lastgroup = createGroup east; 
_unitn = _lastgroup createUnit [_type, _posu, [], 10, "NONE"];
removeUniform _unitn;
_unitn forceAddUniform _unituniform;
Sleep 10;
_unitn addEventHandler ["killed", {handle = [_this select 0] execVM "EW_Server_Side\Blank SS mission files\AIM\cleanup.sqf"}];
[_unitn] join _lastgroup;

	_sCommand = format 
	[
		"[
			{
				[(objectFromNetID '%1')] execVM 'EW_Server_Side\Blank SS mission files\AIM\capture.sqf';
			}
		]", (netId _unitn) 
	];

	[call compile format["%1",_sCommand],"BIS_fnc_spawn", true, true] spawn BIS_fnc_MP; 


_recy = [objnull,_lastgroup] execVM "EW_Server_Side\Blank SS mission files\AIM\grecycle.sqf";

Sleep 3;